home *** CD-ROM | disk | FTP | other *** search
- # arrow - a cute toy - does nothing useful.
- # Arrow is presented as is; no warrantee is either expressed or implied
- # as to it's suitability to any purpose whatsoever. You assume all the
- # risk for all damage, even if caused by a defect in the software, no
- # matter how awful.
- local i=1
- if !?width
- local width=77
- endif
- echo -n "\e[0 p" # turn off cursor
- onintr goto exit
- onerr goto exit
- while 1
- # 99 just goes to the last line in the window.
- # The initial space takes care of deleting the trailing image.
- repeat width-7 'echo -n "\e[99;${i}H =--->";sleep .04;i++'
- repeat width-7 'echo -n "\e[99;${i}H<---= ";sleep .04;i--'
- endwhile
- label exit
- onintr;onerr # avoid infinite loops
- echo "\e[ p\17" # turn cursor back on
- exit 0
-